package com.example.a1;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.Button;
import android.view.*;

public class logDemo extends AppCompatActivity {
    private static final String ACTIVITY_TAG="LogDemo";
    private Button bt;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log_demo);
        bt=(Button) findViewById(R.id.bt);
        bt.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Log.v(logDemo.ACTIVITY_TAG,"This is Verbose.");
                Log.d(logDemo.ACTIVITY_TAG,"This is Debug.");
                Log.i(logDemo.ACTIVITY_TAG,"This is Information.");
                Log.w(logDemo.ACTIVITY_TAG,"This is Warnning.");
                Log.e(logDemo.ACTIVITY_TAG,"This is Error.");
            }
        });
    }
}
